package com.sophossystems.client.asmon.dto;


import java.io.Serializable;


public class RepresentanteDocDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6826275498022201014L;

	/** 
	 * This attribute maps to the column idRepLegal in the REPRESENTANTE_DOC table.
	 */
	protected int idRepLegal;

	/** 
	 * This attribute maps to the column idCliente in the REPRESENTANTE_DOC table.
	 */
	protected int idCliente;

	/** 
	 * This attribute represents whether the primitive attribute idCliente is null.
	 */
	protected boolean idClienteNull = true;

	/** 
	 * This attribute maps to the column compDomicilio in the REPRESENTANTE_DOC table.
	 */
	protected int compDomicilio;

	/** 
	 * This attribute represents whether the primitive attribute compDomicilio is null.
	 */
	protected boolean compDomicilioNull = true;

	/** 
	 * This attribute maps to the column fiel in the REPRESENTANTE_DOC table.
	 */
	protected int fiel;

	/** 
	 * This attribute represents whether the primitive attribute fiel is null.
	 */
	protected boolean fielNull = true;

	/** 
	 * This attribute maps to the column compDomicilioFiscal in the REPRESENTANTE_DOC table.
	 */
	protected int compDomicilioFiscal;

	/** 
	 * This attribute represents whether the primitive attribute compDomicilioFiscal is null.
	 */
	protected boolean compDomicilioFiscalNull = true;

	/** 
	 * This attribute maps to the column curp in the REPRESENTANTE_DOC table.
	 */
	protected int curp;

	/** 
	 * This attribute represents whether the primitive attribute curp is null.
	 */
	protected boolean curpNull = true;

	/** 
	 * This attribute maps to the column rfc in the REPRESENTANTE_DOC table.
	 */
	protected int rfc;

	/** 
	 * This attribute represents whether the primitive attribute rfc is null.
	 */
	protected boolean rfcNull = true;

	/** 
	 * This attribute maps to the column otroRfc in the REPRESENTANTE_DOC table.
	 */
	protected int otroRfc;

	/** 
	 * This attribute represents whether the primitive attribute otroRfc is null.
	 */
	protected boolean otroRfcNull = true;

	/**
	 * Method 'RepresentanteDoc'
	 * 
	 */
	public RepresentanteDocDTO()
	{
	}

	/**
	 * Method 'getIdRepLegal'
	 * 
	 * @return int
	 */
	public int getIdRepLegal()
	{
		return idRepLegal;
	}

	/**
	 * Method 'setIdRepLegal'
	 * 
	 * @param idRepLegal
	 */
	public void setIdRepLegal(int idRepLegal)
	{
		this.idRepLegal = idRepLegal;
	}

	/**
	 * Method 'getIdCliente'
	 * 
	 * @return int
	 */
	public int getIdCliente()
	{
		return idCliente;
	}

	/**
	 * Method 'setIdCliente'
	 * 
	 * @param idCliente
	 */
	public void setIdCliente(int idCliente)
	{
		this.idCliente = idCliente;
		this.idClienteNull = false;
	}

	/**
	 * Method 'setIdClienteNull'
	 * 
	 * @param value
	 */
	public void setIdClienteNull(boolean value)
	{
		this.idClienteNull = value;
	}

	/**
	 * Method 'isIdClienteNull'
	 * 
	 * @return boolean
	 */
	public boolean isIdClienteNull()
	{
		return idClienteNull;
	}

	/**
	 * Method 'getCompDomicilio'
	 * 
	 * @return int
	 */
	public int getCompDomicilio()
	{
		return compDomicilio;
	}

	/**
	 * Method 'setCompDomicilio'
	 * 
	 * @param compDomicilio
	 */
	public void setCompDomicilio(int compDomicilio)
	{
		this.compDomicilio = compDomicilio;
		this.compDomicilioNull = false;
	}

	/**
	 * Method 'setCompDomicilioNull'
	 * 
	 * @param value
	 */
	public void setCompDomicilioNull(boolean value)
	{
		this.compDomicilioNull = value;
	}

	/**
	 * Method 'isCompDomicilioNull'
	 * 
	 * @return boolean
	 */
	public boolean isCompDomicilioNull()
	{
		return compDomicilioNull;
	}

	/**
	 * Method 'getFiel'
	 * 
	 * @return int
	 */
	public int getFiel()
	{
		return fiel;
	}

	/**
	 * Method 'setFiel'
	 * 
	 * @param fiel
	 */
	public void setFiel(int fiel)
	{
		this.fiel = fiel;
		this.fielNull = false;
	}

	/**
	 * Method 'setFielNull'
	 * 
	 * @param value
	 */
	public void setFielNull(boolean value)
	{
		this.fielNull = value;
	}

	/**
	 * Method 'isFielNull'
	 * 
	 * @return boolean
	 */
	public boolean isFielNull()
	{
		return fielNull;
	}

	/**
	 * Method 'getCompDomicilioFiscal'
	 * 
	 * @return int
	 */
	public int getCompDomicilioFiscal()
	{
		return compDomicilioFiscal;
	}

	/**
	 * Method 'setCompDomicilioFiscal'
	 * 
	 * @param compDomicilioFiscal
	 */
	public void setCompDomicilioFiscal(int compDomicilioFiscal)
	{
		this.compDomicilioFiscal = compDomicilioFiscal;
		this.compDomicilioFiscalNull = false;
	}

	/**
	 * Method 'setCompDomicilioFiscalNull'
	 * 
	 * @param value
	 */
	public void setCompDomicilioFiscalNull(boolean value)
	{
		this.compDomicilioFiscalNull = value;
	}

	/**
	 * Method 'isCompDomicilioFiscalNull'
	 * 
	 * @return boolean
	 */
	public boolean isCompDomicilioFiscalNull()
	{
		return compDomicilioFiscalNull;
	}

	/**
	 * Method 'getCurp'
	 * 
	 * @return int
	 */
	public int getCurp()
	{
		return curp;
	}

	/**
	 * Method 'setCurp'
	 * 
	 * @param curp
	 */
	public void setCurp(int curp)
	{
		this.curp = curp;
		this.curpNull = false;
	}

	/**
	 * Method 'setCurpNull'
	 * 
	 * @param value
	 */
	public void setCurpNull(boolean value)
	{
		this.curpNull = value;
	}

	/**
	 * Method 'isCurpNull'
	 * 
	 * @return boolean
	 */
	public boolean isCurpNull()
	{
		return curpNull;
	}

	/**
	 * Method 'getRfc'
	 * 
	 * @return int
	 */
	public int getRfc()
	{
		return rfc;
	}

	/**
	 * Method 'setRfc'
	 * 
	 * @param rfc
	 */
	public void setRfc(int rfc)
	{
		this.rfc = rfc;
		this.rfcNull = false;
	}

	/**
	 * Method 'setRfcNull'
	 * 
	 * @param value
	 */
	public void setRfcNull(boolean value)
	{
		this.rfcNull = value;
	}

	/**
	 * Method 'isRfcNull'
	 * 
	 * @return boolean
	 */
	public boolean isRfcNull()
	{
		return rfcNull;
	}

	/**
	 * Method 'getOtroRfc'
	 * 
	 * @return int
	 */
	public int getOtroRfc()
	{
		return otroRfc;
	}

	/**
	 * Method 'setOtroRfc'
	 * 
	 * @param otroRfc
	 */
	public void setOtroRfc(int otroRfc)
	{
		this.otroRfc = otroRfc;
		this.otroRfcNull = false;
	}

	/**
	 * Method 'setOtroRfcNull'
	 * 
	 * @param value
	 */
	public void setOtroRfcNull(boolean value)
	{
		this.otroRfcNull = value;
	}

	/**
	 * Method 'isOtroRfcNull'
	 * 
	 * @return boolean
	 */
	public boolean isOtroRfcNull()
	{
		return otroRfcNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof RepresentanteDocDTO)) {
			return false;
		}
		
		final RepresentanteDocDTO _cast = (RepresentanteDocDTO) _other;
		if (idRepLegal != _cast.idRepLegal) {
			return false;
		}
		
		if (idCliente != _cast.idCliente) {
			return false;
		}
		
		if (idClienteNull != _cast.idClienteNull) {
			return false;
		}
		
		if (compDomicilio != _cast.compDomicilio) {
			return false;
		}
		
		if (compDomicilioNull != _cast.compDomicilioNull) {
			return false;
		}
		
		if (fiel != _cast.fiel) {
			return false;
		}
		
		if (fielNull != _cast.fielNull) {
			return false;
		}
		
		if (compDomicilioFiscal != _cast.compDomicilioFiscal) {
			return false;
		}
		
		if (compDomicilioFiscalNull != _cast.compDomicilioFiscalNull) {
			return false;
		}
		
		if (curp != _cast.curp) {
			return false;
		}
		
		if (curpNull != _cast.curpNull) {
			return false;
		}
		
		if (rfc != _cast.rfc) {
			return false;
		}
		
		if (rfcNull != _cast.rfcNull) {
			return false;
		}
		
		if (otroRfc != _cast.otroRfc) {
			return false;
		}
		
		if (otroRfcNull != _cast.otroRfcNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idRepLegal;
		_hashCode = 29 * _hashCode + idCliente;
		_hashCode = 29 * _hashCode + (idClienteNull ? 1 : 0);
		_hashCode = 29 * _hashCode + compDomicilio;
		_hashCode = 29 * _hashCode + (compDomicilioNull ? 1 : 0);
		_hashCode = 29 * _hashCode + fiel;
		_hashCode = 29 * _hashCode + (fielNull ? 1 : 0);
		_hashCode = 29 * _hashCode + compDomicilioFiscal;
		_hashCode = 29 * _hashCode + (compDomicilioFiscalNull ? 1 : 0);
		_hashCode = 29 * _hashCode + curp;
		_hashCode = 29 * _hashCode + (curpNull ? 1 : 0);
		_hashCode = 29 * _hashCode + rfc;
		_hashCode = 29 * _hashCode + (rfcNull ? 1 : 0);
		_hashCode = 29 * _hashCode + otroRfc;
		_hashCode = 29 * _hashCode + (otroRfcNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'createPk'
	 * 
	 * @return RepresentanteDocPk
	 */
	public RepresentanteDocPkDTO createPk()
	{
		return new RepresentanteDocPkDTO(idRepLegal);
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.RepresentanteDoc: " );
		ret.append( "idRepLegal=" + idRepLegal );
		ret.append( ", idCliente=" + idCliente );
		ret.append( ", compDomicilio=" + compDomicilio );
		ret.append( ", fiel=" + fiel );
		ret.append( ", compDomicilioFiscal=" + compDomicilioFiscal );
		ret.append( ", curp=" + curp );
		ret.append( ", rfc=" + rfc );
		ret.append( ", otroRfc=" + otroRfc );
		return ret.toString();
	}

}
